#!/usr/bin/env python3

import os, pickle, torch

def find_pickle(directory):
   for root, dirs, files in os.walk(directory):
        for file in files:
            file_path = os.path.join(root, file)
            try:
                with open(file_path, 'rb') as pickle_file:
                    torch.load(pickle_file)
                    print(f"Found: {file_path}")
            except Exception as e:
                # print(f"Error loading {file_path}: {e}")
                pass
if __name__ == "__main__":
    find_pickle('.')
